home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: MegaDisc / MegaDisc 06 (1988)(MegaDisc Digital Publishing)(AU)[m][WB].zip / MegaDisc 06 (1988)(MegaDisc Digital Publishing)(AU)[m][WB].adf / ARTICLES / FileBasics < prev    next >
Text File  |  1988-03-28  |  5KB  |  151 lines

  1.  
  2.          Help For Chopping, Hunkpadding, Squeezing, Unsqueezing, and
  3.                           Archiving Your Files.
  4.  
  5.                       By Stephen Pietrowicz (DR RITZ)
  6.                                    and
  7.                            Harv Laser (CBM*HARV)
  8.                                People Link
  9.  
  10. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  11.     ED. NOTE: This covers most of the more exotic Communications programs
  12.     and what to do with them. Anyone interested can get AMICUS#17 which
  13.     has most of them, along with a number of good communications terminal
  14.     programs. Check out the COMMSPROTOCOLS article by Ross Kellaway, sysop
  15.     of CLUB AMIGA BBS [ (02) 5216338 ] for further information on
  16.     Communications in general.
  17.  
  18. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  19.  
  20. Chopping Files
  21. --------------
  22.  
  23.    The Xmodem protocol transmits data in 128 bytes "chunks".  When a file
  24. is uploaded using the Xmodem protocol, Xmodem automatically pads the file
  25. with null characters.  These characters must be stripped from executable
  26. files in order for the Amiga to recognize the file. (If you don't strip
  27. the characters, you'll get the message "Not an Object file").
  28.  
  29.    Files that need to be chopped normally include in their description
  30. what the exact byte count the program must be.
  31.  
  32. There are several utilities located in the library to chop your files to
  33. the correct length:
  34.  
  35. File           Format      Needs byte count? Description
  36. ------------------------------------------------------------------------
  37. Chop.msb       AmigaBasic  Yes               Prompts for files and count
  38. Trunc          Executable  Yes               Trunc <orig> <dest> <bytes>
  39. FixObj         Executable  No                FixObj <orig> <dest>
  40. Chop.Exe       Executable  Yes               Chop <orig> <dest> <bytes>
  41. Comm           Executable  No                Terminal Program
  42.  
  43. Where:
  44.  
  45.    <orig>      is what you called your downloaded file
  46.    <dest>      is what you want your chopped file to be called
  47.    <bytes>     is the count of how much the file should be chopped (in
  48.                bytes)
  49.  
  50.  
  51. Since FixObj is an intelligent chop program, you don't have to specify the
  52. correct byte count on your disk.
  53.  
  54. There are several terminal programs that automatically chop your files as
  55. they are being downloaded.  We recommend that you use the "Comm" series of
  56. terminal programs written by DJJAMES.  It is one of the more advanced public
  57. domain terminal programs, and has many features.
  58.  
  59. HunkPad
  60. -------
  61.  
  62. FORMAT:        HunkPad  <obj>
  63.  
  64. Where:         <obj> is the name of the file to hunkpad.
  65.  
  66. In an effort to eliminate having to chop your downloads, a program called
  67. HunkPad "fixes" files before they are uploaded.  It adds the correct number
  68. of bytes to a file to make the total byte count divisible by 128.  Since
  69. Xmodem transmits 128 bytes per "chunk", no extra bytes will be added the
  70. xmodem upload once you HunkPad it.
  71.  
  72. Squeezing and Unsqueezing
  73. -------------------------
  74.  
  75. SQ -- Compact a file
  76.  
  77. FORMAT:     SQ <exe1>
  78.  
  79. Where:      <exe1> is the file you want to squeeze
  80.  
  81.  
  82.    When a file is squeezed using SQ, a new file is created, with a "q"
  83. somewhere in it's name.  For example, when the file  PLINK.TXT is squeezed,
  84. a new file is created, and is called:  PLINK.TQT.   This helps identify
  85. squeezed programs.
  86.  
  87. USQ -- Un-compact a file
  88.  
  89. FORMAT:     USQ <exe2>
  90.  
  91. Where:      <exe2> is the file you want to un-squeeze
  92.  
  93.    USQ is used to un-squeeze your compacted files.  It doesn't matter what
  94. you call the program when you download it to your system.  The correct file
  95. name is automatically saved when the program is squeezed.  USQing a file
  96. creates a new file on your disk.
  97.  
  98. Archives
  99. --------
  100.  
  101.    The most preferred format is ARC format.   Archives contain the best of
  102. both worlds:  They are always a multiple of 128, so they don't have to be
  103. chopped, and they automatically compact files.
  104.  
  105.    The archive program has a built in help command; all you have to type is
  106. the name of the archiver, and it will list the commands that you can use.
  107. The following are a few of the most frequently used commands:
  108.  
  109. ----
  110.  
  111. Archive Command: a   -- adds (creates) files to an archive
  112.  
  113. FORMAT:   ARC a <name> <file1> <file2> ... <filen>
  114.  
  115. Where:    <name>  is the name of the archive you want to add files to.  If
  116.                   the archive doesn't exist, ARC automatically creates it.
  117.  
  118.           <file1><file2>...<filen> are the names of the files to add.
  119.  
  120. ----
  121.  
  122. Archive Command: e   -- extract files from an archive
  123.  
  124. FORMAT:   ARC e <name>
  125.  
  126. Where:    <name>  is the name of the archive you are extracting files from.
  127.                   It's generally a good idea to list the contents of an
  128.                   archive to find out the size of the extracted files to
  129.                   make sure that you have enough room on the disk.
  130.  
  131. ----
  132.  
  133. Archive Command: v   -- list the contents of an archive
  134.  
  135. FORMAT:   ARC v <name>
  136.  
  137. Where:    <name>  is the name of the archive.
  138.  
  139. ARCing is the preferred method of storing files.  Most popular
  140. computers, such as the IBM-PC and compatibles, don't care about Xmodem
  141. padding, on downloads... however Amiga is different... Xmodem padding
  142. on executable files is significant, and can cause you problems unless
  143. you are aware of the problem and its solutions.
  144.  
  145. DR RITZ (Steve)
  146. CBM*HARV (Harv)
  147.  
  148.  
  149.  
  150. ~~~~~~~~~~~~~~~~~~~~~~~~~~ END OF FILEBASICS ~~~~~~~~~~~~~~~~~~~~~~~~~~
  151.